package com.indeep.user.mapper.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("app_vx_tel_bind")
public class AppVxTelBindPO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String tel;
    private String openid;
    /**
     * 创建时间-创建时自动填充
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间-创建与修改时自动填充
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    public AppVxTelBindPO(String phoneNumber, String openid) {
        this.tel = phoneNumber;
        this.openid = openid;
    }
}
